package bean;

import java.io.Serializable;
import java.util.LinkedHashMap;
import java.util.Map;

public class GuaMap implements Serializable {

    private Map<String,Gua> guaMap = new LinkedHashMap<>();

    public Map<String, Gua> getMap() {
        return guaMap;
    }

    public void setGuaMap(Map<String,Gua> guaMap) {
        this.guaMap = guaMap;
    }

    public static class Gua {
        private String top;
        private String left;
        private String right;
        private String bottom;

        private String guaCi;

        private String tuanCi;

        private String daXiang;
        private String xiangCi;
        private String xiaoXiang_1;
        private String xiaoXiang_2;
        private String xiaoXiang_3;
        private String xiaoXiang_4;
        private String xiaoXiang_5;
        private String xiaoXiang_6;
        private String xiaoXiang_7;

        private String yaoCi;
        private String yao_1;
        private String yao_2;
        private String yao_3;
        private String yao_4;
        private String yao_5;
        private String yao_6;
        // 某些卦特有
        private String yao_7;

        public Gua() {
        }

        public String getTop() {
            return top;
        }

        public void setTop(String top) {
            this.top = top;
        }

        public String getLeft() {
            return left;
        }

        public String getVerticalLeft(){
            StringBuilder stringBuilder = new StringBuilder();
            for (char c:left.toCharArray()){
                stringBuilder.append(c).append('\n');
            }
            return stringBuilder.toString();
        }

        public String getVerticalRight(){
            StringBuilder stringBuilder = new StringBuilder();
            for (char c:right.toCharArray()){
                stringBuilder.append(c).append('\n');
            }
            return stringBuilder.toString();
        }

        public void setLeft(String left) {
            this.left = left;
        }

        public String getRight() {
            return right;
        }

        public void setRight(String right) {
            this.right = right;
        }

        public String getBottom() {
            return bottom;
        }

        public void setBottom(String bottom) {
            this.bottom = bottom;
        }

        public String getGuaCi() {
            return guaCi == null ? "" :guaCi;
        }

        public void setGuaCi(String guaCi) {
            this.guaCi = guaCi;
        }

        public String getTuanCi() {
            return tuanCi == null ? "" :tuanCi;
        }

        public void setTuanCi(String tuanCi) {
            this.tuanCi = tuanCi;
        }

        public String getDaXiang() {
            return daXiang == null ? "" : daXiang;
        }

        public void setDaXiang(String daXiang) {
            this.daXiang = daXiang;
        }

        public String getXiangCi() {
            return xiangCi == null ? "" :xiangCi;
        }

        public void setXiangCi(String xiangCi) {
            this.xiangCi = xiangCi;
        }

        public String getXiaoXiang_1() {
            return xiaoXiang_1 == null ? "" :xiaoXiang_1;
        }

        public void setXiaoXiang_1(String xiaoXiang_1) {
            this.xiaoXiang_1 = xiaoXiang_1;
        }

        public String getXiaoXiang_2() {
            return xiaoXiang_2 == null ? "" :xiaoXiang_2;
        }

        public void setXiaoXiang_2(String xiaoXiang_2) {
            this.xiaoXiang_2 = xiaoXiang_2;
        }

        public String getXiaoXiang_3() {
            return xiaoXiang_3 == null ? "" :xiaoXiang_3;
        }

        public void setXiaoXiang_3(String xiaoXiang_3) {
            this.xiaoXiang_3 = xiaoXiang_3;
        }

        public String getXiaoXiang_4() {
            return xiaoXiang_4 == null ? "" :xiaoXiang_4;
        }

        public void setXiaoXiang_4(String xiaoXiang_4) {
            this.xiaoXiang_4 = xiaoXiang_4;
        }

        public String getXiaoXiang_5() {
            return xiaoXiang_5 == null ? "" :xiaoXiang_5;
        }

        public void setXiaoXiang_5(String xiaoXiang_5) {
            this.xiaoXiang_5 = xiaoXiang_5;
        }

        public String getXiaoXiang_6() {
            return xiaoXiang_6 == null ? "" :xiaoXiang_6;
        }

        public void setXiaoXiang_6(String xiaoXiang_6) {
            this.xiaoXiang_6 = xiaoXiang_6;
        }

        public String getXiaoXiang_7() {
            return xiaoXiang_7 == null ? "" :xiaoXiang_7;
        }

        public void setXiaoXiang_7(String xiaoXiang_7) {
            this.xiaoXiang_7 = xiaoXiang_7;
        }

        public String getYaoCi() {
            return yaoCi == null ? "" :yaoCi;
        }

        public void setYaoCi(String yaoCi) {
            this.yaoCi = yaoCi;
        }

        public String getYao_1() {
            return yao_1 == null ? "" :yao_1;
        }

        public void setYao_1(String yao_1) {
            this.yao_1 = yao_1;
        }

        public String getYao_2() {
            return yao_2 == null ? "" :yao_2;
        }

        public void setYao_2(String yao_2) {
            this.yao_2 = yao_2;
        }

        public String getYao_3() {
            return yao_3 == null ? "" :yao_3;
        }

        public void setYao_3(String yao_3) {
            this.yao_3 = yao_3;
        }

        public String getYao_4() {
            return yao_4 == null ? "" :yao_4;
        }

        public void setYao_4(String yao_4) {
            this.yao_4 = yao_4;
        }

        public String getYao_5() {
            return yao_5 == null ? "" :yao_5;
        }

        public void setYao_5(String yao_5) {
            this.yao_5 = yao_5;
        }

        public String getYao_6() {
            return yao_6 == null ? "" :yao_6;
        }

        public void setYao_6(String yao_6) {
            this.yao_6 = yao_6;
        }

        public String getYao_7() {
            return yao_7 == null ? "" :yao_7;
        }

        public void setYao_7(String yao_7) {
            this.yao_7 = yao_7;
        }
    }

}
